package com.xmy.study.entity.erp;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 登录账号
 * </p>
 *
 * @author hpiggy
 * @since 2023-09-09
 */
@ApiModel(value = "Admin对象", description = "登录账号")
@Data
public class Admin implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("账号")
    private String account;

    @ApiModelProperty("密码")
    private String pwd;

    @ApiModelProperty("姓名")
    private String name;

    @ApiModelProperty("性别")
    private Integer sex;

    @ApiModelProperty("1全部校区，2指定校区")
    private Integer governMode;

    @ApiModelProperty("是否允许登陆，0否，1是")
    private Integer isLogin;

    private Integer isSuper;

    private Integer deleted;

    @ApiModelProperty("created_at")
    private LocalDateTime createdAt;

    @ApiModelProperty("updated_at")
    private LocalDateTime updatedAt;

    @ApiModelProperty("deleted_at")
    private LocalDateTime deletedAt;

    @TableField(exist = false)
    private List<Long> schoolIdList;

    @TableField(exist = false)
    private List<Long> roleIdList;

    @TableField(exist = false)
    private List<String> permissionCodeList;
}
